package archer.framework.core.lang;

/**
 * K-V结构
 *
 * @author christ
 * @date 2015/8/21
 */
public class KeyValue<K, V> {

    private K key;

    private V value;

    public KeyValue(K key, V value) {
        this.key = key;
        this.value = value;
    }

    public K getKey() {
        return key;
    }

    public KeyValue setKey(K key) {
        this.key = key;
        return this;
    }

    public V getValue() {
        return value;
    }

    public KeyValue setValue(V value) {
        this.value = value;
        return this;
    }
}
